export const useAuth = () => {
    const setAuth = (value = undefined) => {
        if (value == undefined) {
            uni.removeStorageSync('token');
        } else {
            uni.setStorageSync('token', value);
        }
    };
    const getAuth = () => {
        return uni.getStorageSync('token');
    };
    return {
        setAuth,
        getAuth
    };
};
